#! /bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

echo '' > /opt/google/chrome/chrome_debug.log
rm -fr /data/wwwbak/dedecms/website/*.tar.gz
rm -fr /tmp/.com.google.Chrome.*
find /data/wwwroot/dedecms/data/tplcache/ -type f -exec rm {} \;
find /var/log/nftables/ -type f -exec rm {} \;
systemctl restart mysqld.service && systemctl restart php74-fpm.service
sh /usr/local/src/sql_backup.sh

wget --limit-rate=10M -4 --tries=3 -c --no-check-certificate https://gitee.com/indextank/z7z8/raw/master/auto_reject_ssh_attack.sh

wget --limit-rate=10M -4 --tries=3 -c --no-check-certificate https://gitee.com/indextank/z7z8/raw/master/auto_reject_ssh_attack.sh

if [ ! -f auto_reject_ssh_attack.sh ]; then
   wget --limit-rate=10M -4 --tries=3 -c --no-check-certificate https://raw.githubusercontent.com/indextank/myShell/master/auto_reject_ssh_attack.sh
fi

chmod +x auto_reject_ssh_attack.sh
./auto_reject_ssh_attack.sh >>auto_reject_ssh_attack.log